package com.ems.sys.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/****
 * @Author:shenkunlin
 * @Description:EmsLeave构建
 * @Date 2019/6/14 19:13
 *****/
@Table(name="ems_leave")
public class EmsLeave implements Serializable{

	@Id
    @Column(name = "eId")
	private String eId;//

    @Column(name = "eName")
	private String eName;//

	@DateTimeFormat(pattern = "yyyy-MM-dd") //入参
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd") //出参
    @Column(name = "leaveDate")
	private Date leaveDate;//

	@DateTimeFormat(pattern = "yyyy-MM-dd") //入参
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd") //出参
    @Column(name = "backDate")
	private Date backDate;//

    @Column(name = "leaveReason")
	private String leaveReason;//



	//get方法
	public String getEId() {
		return eId;
	}

	//set方法
	public void setEId(String eId) {
		this.eId = eId;
	}
	//get方法
	public String getEName() {
		return eName;
	}

	//set方法
	public void setEName(String eName) {
		this.eName = eName;
	}
	//get方法
	public Date getLeaveDate() {
		return leaveDate;
	}

	//set方法
	public void setLeaveDate(Date leaveDate) {
		this.leaveDate = leaveDate;
	}
	//get方法
	public Date getBackDate() {
		return backDate;
	}

	//set方法
	public void setBackDate(Date backDate) {
		this.backDate = backDate;
	}
	//get方法
	public String getLeaveReason() {
		return leaveReason;
	}

	//set方法
	public void setLeaveReason(String leaveReason) {
		this.leaveReason = leaveReason;
	}


}
